define(function(){
	return {

			piclazyload: function(){
				 // 原始版懒加载
				var imgs=document.getElementsByTagName('img');
				setInterval(function(){
					var scrollTop=window.pageXOffset  || document.documentElement.scrollTop || document.body.scrollTop;
					var viewportsize=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
					for(var i=0; i<imgs.length;i++){
						var x=scrollTop+viewportsize;
						var imgheight=imgs[i].offsetTop
						if(x>=imgheight){
							imgs[i].src=imgs[i].getAttribute('loadpic') ? imgs[i].getAttribute('loadpic') : imgs[i].src;
							imgs[i].style.paddingBottom="0";
							imgs[i].style.background="none"
						}
					}
				},500);
			}
			
	}
});
			